$().ready(function(){
$baseUrl=$("#baseUrl").text();


$(".deleteLink").click(function() {

	if (!confirm("真的要删除本次邀请?"))
		return false;
});
//Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)

$("ul.topNav li").bind("mouseover", function() { //When trigger is clicked...
	
	$this = $(this);
	//Following events are applied to the subnav itself (moving subnav up and down)
	$subNav = $this.find("ul.subNav");
	$subNav.show(); //Drop down the subnav on mouseover
	if($subNav.attr("id") == "navProfile"){$("#leftcorner").addClass("leftcornerHidden");}
	
	$this.hover(function(){},function(){
		$subNav = $(this).find("ul.subNav");
		$subNav.hide();
		if($subNav.attr("id") == "navProfile"){$("#leftcorner").removeClass("leftcornerHidden");}
		});
});


/*
 * $(".zend_form input").blur(function() { if ($(this).val() == '') {
 * $(this).siblings('p').remove().end().after("<p class='error'>不能为空！</p>"); }
 * if ($(this).attr('id') == 'email'){
 * 
 * $.post('/yaoqingka/public/ajax/checkemail', {'email':$(this).val()},
 * function(data){ $("#content #email").siblings('p').remove().end().after("<p class='"+data[0]+"'>"+data[1]+"</p>");
 * },'json'); return false; } });
 * 
 * 
 * $("#register").click(function(e){ $returnValue = true; $("#email, #username,
 * #password, #confirm").each(function(){ if($(this).val() == "") { $returnValue =
 * false; return false; }});
 * 
 * if(!$returnValue) return false;
 * 
 * if($("form").find(".error").length){alert("haha");return false;} });
 */

});